<?php
include('../admin_global.php');

if(isset($_POST['delete_userid'])){
	$sql = "UPDATE `renren_hunauhomeurl` SET `status` = '0' WHERE `userid` = '".$_POST['delete_userid']."'";
	$query = $db->query($sql);
	if($query){
		echo 'success';
	}else{
		echo 'failure';
	}
}

if(isset($_POST['ignore_userid'])){
	$sql = "UPDATE `renren_hunauhomeurl` SET `fake_votes` = '0' WHERE `userid` = '".$_POST['ignore_userid']."'";
	$query = $db->query($sql);
	if($query){
		echo 'success';
	}else{
		echo 'failure';
	}
}
?>